package club.kingyin.kyblogprosearch.config;

import club.kingyin.kyblogprosearch.trans.TransApi;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class TransConfig {

    @Value("${trans.app-id}")
    private String APP_ID;
    @Value("${trans.security-key}")
    private String SECURITY_KEY;

    @Bean
    public TransApi transApi() {
        return new TransApi(APP_ID,SECURITY_KEY);
    }
}
